import service from '@/plugins/utils/request'
let pre = 'api/Passenger/'
export default{
	//获取选项列表
	//addressId 
	GetPassenger(data) {
		return service({
			url: `${pre}GetPassenger`,
			method: 'post',
			data
		})
	},
	
	//获取用户的地址列表
	//pageIndex
	//pageSize 
	ListPassenger(data) {
		return service({
			url: `${pre}ListPassenger`,
			method: 'post',
			data
		})
	},

	//新增收货地址
	//name
	//mobile
	//detail
	//is_default  boolean
	AddPassenger(data) {
		return service({
			url: `${pre}AddPassenger`,
			method: 'post',
			data
		})
	},

	//更新地址
	//addressId
	//name
	//mobile
	//detail
	//is_default  boolean
	UpdatePassenger(data) {
		return service({
			url: `${pre}UpdatePassenger`,
			method: 'post',
			data
		})
	},

	//删除地址
	//addressId
	DeletePassenger(data) {
		return service({
			url: `${pre}DeletePassenger`,
			method: 'post',
			data
		})
	},
} 